package com.example.bicycle.domain.entity;

import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
/**
 * (RideRecord)表实体类
 *
 * @author makejava
 * @since 2023-08-02 21:29:49
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ride_records")
public class RideRecord  {
    @TableId
    @TableField("record_id")
    private Integer recordId;

    @TableField("user_id")
    private Integer userId;
    
    @TableField("bike_id")
    private Integer bikeId;
    
    @JsonFormat(shape = JsonFormat.Shape.ANY,locale = "zh_CN",pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("start_time")
    private Date startTime;
    
    @JsonFormat(shape = JsonFormat.Shape.ANY,locale = "zh_CN",pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("end_time")
    private Date endTime;
    
    @TableField("start_latitude")
    private Float startLatitude;
    
    @TableField("start_longitude")
    private Float startLongitude;
    
    @TableField("distance")
    private Float distance;
    
    @TableField("duration")
    private Float duration;
    
    @TableField("average_speed")
    private Float averageSpeed;
    
    @TableField("end_latitude")
    private Float endLatitude;
    
    @TableField("end_longitude")
    private Float endLongitude;



}

